﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using Models;
using BLL;
using System.IO;

namespace Dryricenet.houTai
{
    public partial class collection_XQ : System.Web.UI.Page
    {
        public string foodName = "";
        public string userName = "";
        public string time = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int CollectionID = Convert.ToInt32(Request.QueryString["CollectionID"]);
                DataTable dt = CollectionBLL.collectionIDBLL(CollectionID);
                //用DataRow来存一行数据
                DataRow dr = dt.Rows[0];//第一条数据
                                        //把数据一个一个的放进输入框里
                foodName = dr["FoodName"].ToString();
                userName = dr["UserName"].ToString();
                time = dr["Time"].ToString();
            }
        }
    }
}